package com.tgu.home_action.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.tgu.home_action.pojo.Track;
import com.tgu.home_action.pojo.TrackPoint;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TrackPointMapper extends BaseMapper<TrackPoint> {
    /**
     * 查询轨迹
     */
    List<Track> getTrack(Track track);

    /**
     * 获取轨迹点
     */
    @Select("select * from track_point where volunteer_id=#{volunteerId} and case_id=#{caseId} order by create_at")
    List<TrackPoint> getTrackPoint(Integer volunteerId,Integer caseId);
}
